import Vue from 'vue'
import {
  Button,
  Icon,
  Tabbar, TabbarItem,
  NavBar,
  Form,
  Field,
  CountDown,
  Cell, CellGroup,
  Image as VantImage,
  Grid, GridItem,
  Tab, Tabs,
  List,
  PullRefresh,
  Popup,
  Search,
  Row, Col,
  Picker,
  DatetimePicker,
  ImagePreview,
  Dialog,
  Toast
} from 'vant'

Vue.use(Button)
Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(NavBar)
Vue.use(Field)
Vue.use(Form)
Vue.use(CountDown)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(VantImage)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(List)
Vue.use(PullRefresh)
Vue.use(Popup)
Vue.use(Search)
Vue.use(Row)
Vue.use(Col)
Vue.use(Picker)
Vue.use(DatetimePicker)
Vue.use(ImagePreview)

Vue.prototype.$dialog = Dialog
Vue.prototype.$toast = Toast
